//package com.ruoyi.flink.connectors
//
//import java.util.Properties
//
//import org.apache.flink.api.common.serialization.SimpleStringSchema
//import org.apache.flink.api.scala._
//import org.apache.flink.streaming.api.scala.{StreamExecutionEnvironment, createTypeInformation}
//import org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumer
//
///**
// * @program: ruoyi
// * @description: KafkaConnectorConsumer
// * @author: zengchen
// * @create: 2020-12-15 19:51
// * */
//object KafkaConnectorConsumer {
//  def main(args: Array[String]): Unit = {
//    val env = StreamExecutionEnvironment.getExecutionEnvironment
//    val properties = new Properties()
//    properties.setProperty("bootstrap.servers", "centos7-out:9092")
//    properties.setProperty("group.id", "zc_test")
//    val stream = env.addSource(new FlinkKafkaConsumer[String]("study_test", new SimpleStringSchema(), properties))
//    stream.print();
//
//
//    env.execute("KafkaConnectorConsumer")
//  }
//}
